package indi.zhifa.study2024.nbr;

import indi.zhifa.core.multidatasource.entity.EnableZfMultiDataSource;
import indi.zhifa.study2024.common.auth.handler.AuthMetaObjectHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import java.io.IOException;

@EnableZfMultiDataSource
@MapperScan(value = {"indi.zhifa.study2024.nbr.gen.**.mapper",
        "indi.zhifa.study2024.nbr.logic.report.**.mapper"},sqlSessionFactoryRef = "sqlSessionFactory_busy")
@SpringBootApplication(scanBasePackages = {"indi.zhifa.core","indi.zhifa.study2024.common","indi.zhifa.study2024.nbr"},
        scanBasePackageClasses = {AuthMetaObjectHandler.class})
public class NbrApplication {
    public static void main(String[] args) throws IOException {
        SpringApplication.run(NbrApplication.class, args);
    }
}
